package bosque.unc.ayuda;

import java.awt.BorderLayout;
import java.awt.EventQueue;
import java.awt.SystemColor;
import java.awt.Toolkit;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.UIManager;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.JTextArea;

import bosque.unc.enumerations.Ayuda;

import java.awt.Font;

public class ManoplaAyuda extends JFrame {

	private JPanel contentPane;
	private JScrollPane scroll;
	private JScrollPane scroll2;
	private JScrollPane scroll3;
	private JTextArea textAreaTelescopio;
	private JTextArea textAreaPlataforma;
	private JTextArea textAreaCupula;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				
				try
				{
					System.out.println("Look and Fell: " + UIManager.getSystemLookAndFeelClassName());
					UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
				}
				catch (Exception ex)
				{
					System.out.println("Failed loading L&F: ");
					System.out.println(ex);
				}
				
				try {
					ManoplaAyuda frame = new ManoplaAyuda();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public ManoplaAyuda() {
		setIconImage(Toolkit.getDefaultToolkit().getImage("D:\\WorkTesis\\Scoba\\src\\bosque\\unc\\gui\\resources\\ayuda.png"));
		//setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setTitle("Pantalla de ayuda para la manopla del telescopio");
		setBounds(100, 100, 740, 509);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel lblPanelTelescopio = new JLabel("Panel Telescopio");
		lblPanelTelescopio.setFont(new Font("Arial", Font.BOLD, 13));
		lblPanelTelescopio.setBounds(10, 21, 161, 14);
		contentPane.add(lblPanelTelescopio);
		
		textAreaTelescopio = new JTextArea();
		textAreaTelescopio.setEditable(false);
		textAreaTelescopio.setText(Ayuda.AYUDA_PANTALLA_MANOPLA_TELESCOPIO.getMsg());
		
		scroll = new JScrollPane(textAreaTelescopio);
		textAreaTelescopio.setBackground(SystemColor.control);
		scroll.setBounds(10, 46, 700, 130);
		contentPane.add(scroll);
		
		JLabel lblPanelPlataforma = new JLabel("Panel Plataforma");
		lblPanelPlataforma.setFont(new Font("Arial", Font.BOLD, 13));
		lblPanelPlataforma.setBounds(10, 198, 161, 14);
		contentPane.add(lblPanelPlataforma);
		
		textAreaPlataforma = new JTextArea();
		textAreaPlataforma.setEditable(false);
		textAreaPlataforma.setText(Ayuda.AYUDA_PANTALLA_MANOPLA_PLATAFORMA.getMsg());
		scroll2 = new JScrollPane(textAreaPlataforma);
		textAreaPlataforma.setBackground(SystemColor.control);
		scroll2.setBounds(10, 223, 700, 86);
		contentPane.add(scroll2);
		
		JLabel lblPanelCupula = new JLabel("Panel Cupula");
		lblPanelCupula.setFont(new Font("Arial", Font.BOLD, 13));
		lblPanelCupula.setBounds(10, 333, 134, 14);
		contentPane.add(lblPanelCupula);
		
		textAreaCupula = new JTextArea();
		textAreaCupula.setEditable(false);
		textAreaCupula.setText(Ayuda.AYUDA_PANTALLA_MANOPLA_CUPULA.getMsg());
		scroll3 = new JScrollPane(textAreaCupula);
		textAreaCupula.setBackground(SystemColor.control);
		scroll3.setBounds(10, 358, 700, 102);
		contentPane.add(scroll3);
	}

}
